<?php
namespace Versal\SecurityBundle\Entity;
use Symfony\Component\Security\Core\Role\RoleInterface;
/*
 * To change this template use Tools | Templates.
 */
class RoleUser implements RoleInterface
{

    private $role;
    private $idApp;
    
    public function __construct($role)
    {
        $this->role = $role;
    }
    
    public function setIdApp($idApp)
    {
        $this->idApp = $idApp;
    }
    
    /*
     * @override
     *       
     */
    public function getRole()
    {
        return $this->role;
    }
    
    public function getIdApp()
    {
        return $this->idApp;
    }
    
    /*
     public function serialize()
    {
        return \serialize(array(
            $this->idApp,
            $this->role
        ));
    }

    public function unserialize($serialized)
    {
        list(
            $this->idApp,
            $this->role
        ) = \unserialize($serialized);
    }*/
    
    
}